/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.forward.mobile.optitrans.domain;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author jbromo
 */
public class Chauffeur {

    private int id;
    private int idClient;
    private String matricule;
    private String lastname;
    private String firstName;

    

    public Chauffeur(ResultSet resultSet) throws SQLException {
        this.id = resultSet.getInt("id");
        this.idClient = resultSet.getInt("id_client");
        this.matricule = resultSet.getString("matricule");
        this.lastname = resultSet.getString("nom");
        this.firstName = resultSet.getString("prenom");
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setIdClient(int idClient) {
        this.idClient = idClient;
    }

    public void setMatricule(String matricule) {
        this.matricule = matricule;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public int getId() {
        return id;
    }

    public int getIdClient() {
        return idClient;
    }

    public String getMatricule() {
        return matricule;
    }

    public String getLastname() {
        return lastname;
    }

    public String getFirstName() {
        return firstName;
    }
}
